package com.bitcola.security.admin.mapper;

import com.bitcola.entity.ColaUserLimit;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@Repository
public interface ColaUserLimitMapper extends Mapper<ColaUserLimit> {
    ColaUserLimit getUserLimit(@Param("userId") String userId, @Param("module") String module);

    /**
     * 获取用户权限禁止列表
     * @param userId
     * @return
     */
    List<String> findLimitList(@Param("userId") String userId);
}
